package com.saleoffline.server.domain;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class SqlMapDAO extends SqlMapClientDaoSupport {
	
	@Autowired
	public void setSaleofflineSqlMapClient(SqlMapClient sqlMapClient) {
		this.setSqlMapClient(sqlMapClient);
	}
	
	public String getStatementName(String namespace, String id) {
		return namespace + "." + id;
	}
}
